// 获取cookie 公共函数
function getCookie() {
  const cookies = document.cookie;
  return cookies;
}
async function getfetch(mid) {
  const url = `https://app.biliapi.com/x/v2/space/archive/cursor?vmid=${mid}`;
  const response = await fetch(url, {
    method: "GET",
    headers: {
      // 可能需要添加 Referer 或 Origin
      Referer: "https://space.bilibili.com",
    },
  });
  return await response.json();
}

getfetch("232004597")
  .then((data) => console.log(data))

  .catch((err) => console.error("Error:", err));
